home
***
CD-ROM
|
disk
|
other
***
search
/
SGI IndiZone 2
/
SGI IndiZone 2.iso
/
OutOfBox.idb
/
usr
/
people
/
tour
/
.xsession.z
/
.xsession
(
.txt
)
Wrap
Text File
|
1994-12-16
|
2KB
|
76 lines
#!/bin/sh
# Based on: $XConsortium: Xsession,v 1.7 92/08/06 11:08:14 gildea Exp $
# # Uncomment this for X11R5 redirection of Xsession errors.
#
# # redirect errors to a file in user's home directory if we can
# for errfile in "$HOME/.xsession-errors" "/tmp/xses-$USER"
# do
# if ( cp /dev/null "$errfile" 2> /dev/null )
# then
# chmod 600 "$errfile"
# exec > "$errfile" 2>&1
# break
# fi
# done
case $# in
1)
case $1 in
failsafe)
dim="`xdpyinfo | awk ' /dimensions/ {print $2}' | grep '1024x768'`"
if [ "$?" = 0 ]; then
geom="80x40+190+102"
font="-sgi-terminal-*-*-*--12-*"
else
geom="80x40+150+172"
font="-sgi-terminal-*-*-*--17-*"
fi
exec xwsh -geom $geom -fn $font -xrm "XWsh.autoFork: off" -nomenu
;;
esac
esac
resources=$HOME/.Xresources
userenv=/usr/bin/X11/userenv
if [ -r $resources ]; then
xrdb -load -quiet $resources
fi
XUSERFILESEARCHPATH="$HOME/%N:`/usr/bin/X11/appdefpath`"
export XUSERFILESEARCHPATH
if [ -x $userenv ]; then
#
# Find user's environment as set up during a login
# shell, and add that to current environment.
#
eval `$userenv`
fi
#
# Note: Output from $HOME/.sgisession, 4Dwm, workspace and toolchest
# is redirected to /dev/console. All other output is written to
# /usr/adm/SYSLOG by default (or where the X11R5 redirection makes it go
# if the above X11R5 redirection lines above are uncommented).
#
/usr/bin/X11/4Dwm >/dev/console 2>&1 &
/usr/bin/X11/wait4wm
#
# Do language dependent stuff
intlenv=`gettxt uxsgidesktop:452 ':'`
eval ${intlenv}
#
# Run the Out of Box Experience!
#
.OutOfBox &
mv .desktop-`hostname` .desktop
exec /usr/bin/X11/reaper